package com.itwxz.system.domain.po;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.itwxz.common.annotation.Excel;

import java.io.Serial;
import java.io.Serializable;

import lombok.Builder;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 历史订单对象 wxz_order_history
 *
 * @author gastronome
 * @date 2025-04-06
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WxzOrderHistory implements Serializable {
	@Serial
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	private Long id;

	/**
	 * 机主名称
	 */
	@Excel(name = "机主名称")
	private String name;

	/**
	 * 身份
	 */
	@Excel(name = "身份")
	private Integer identity;

	/**
	 * 学号
	 */
	@Excel(name = "学号")
	private String studentId;

	/**
	 * 宿舍栋数
	 */
	@Excel(name = "宿舍栋数")
	private String building;

	/**
	 * 宿舍号
	 */
	@Excel(name = "宿舍号")
	private String dormitory;

	/**
	 * 手机号
	 */
	@Excel(name = "手机号")
	private String phone;

	/**
	 * 订单类型
	 */
	@Excel(name = "订单类型")
	private Integer type;

	/**
	 * 订单详情
	 */
	@Excel(name = "订单详情")
	private String details;

	/**
	 * 订单状态
	 */
	@Excel(name = "订单状态")
	private Integer status;

	/**
	 * 维修人员
	 */
	@Excel(name = "维修人员")
	private Long staffId;

	/**
	 * 创建时间
	 */
	@Excel(name = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime createTime;

	/**
	 * 更新时间
	 */
	@Excel(name = "更新时间")
	@TableField(fill = FieldFill.UPDATE)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime updateTime;

	/**
	 * 更新人
	 */
	@TableField(fill = FieldFill.UPDATE)
	@Excel(name = "更新人")
	private String updateBy;

	/**
	 * 是否上传文件
	 */
	@Excel(name = "上传文件")
	private Integer isUploads;

	/**
	 * 完成订单时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@Excel(name = "完成订单时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime completionTime;

	/**
	 * 转单人id
	 */
	@Excel(name = "转单人id")
	private Long assignorId;

	/**
	 * 转单人
	 */
	@Excel(name = "备注")
	private String remark;

	/**
	 * 删除标志（0代表存在 2代表删除）
	 */
	@TableLogic
	private Integer delFlag;

	/**
	 * 归档时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd")
	@Excel(name = "归档时间", width = 30, dateFormat = "yyyy-MM-dd")
	private LocalDateTime archiveTime;


}
